Xbasic
URLDECODE Function
Syntax
Output_String as C = URLDECODE(url as c)
Arguments
- urlCharacter
An encoded URL address produced by URLENCODE() or similar function.
Returns
- Output_StringCharacter
A decoded URL string.
Description
Decodes text that has been urlencoded.
Discussion
URLDECODE() decodes text that has been urlencoded. The function creates a character string by replacing the escape characters in the Encoded_URL_String with their normal ASCII equivalents.
Example
? urldecode("text%2dvalue%3dfoo%20bar%3b") = "text-value=foo bar;" ? urldecode("text%2Dvalue%3Dfoo%20bar%3B") = "text-value=foo bar;" ? urldecode("text%2dvalue%3dfoo bar%3b") = "text-value=foo bar;" ? urldecode("text-value%3dfoo%20bar%3b") = "text-value=foo bar;" ? urldecode("text-value%3Dfoo bar%3B") = "text-value=foo bar;"
See Also